package com.cos.lession78mp.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
import lombok.ToString;

import java.util.Date;

/**
 * @author: COS
 * @time: 2022/10/11 16:47
 * @description:
 */
@AllArgsConstructor
@NoArgsConstructor
@Data
@ToString
@TableName("emp")
public class Emp extends Model<Emp> {
    @TableId(value = "eno",type = IdType.AUTO)
    private Integer eno;
    private String ename;
    private String esex;
    private Double salary;
    private String pwd;
    private Integer dno;
    private Date bornDate;

    public Emp(String ename, String esex, Double salary, String pwd, Integer dno, Date bornDate) {
        this.ename = ename;
        this.esex = esex;
        this.salary = salary;
        this.pwd = pwd;
        this.dno = dno;
        this.bornDate = bornDate;
    }
}
